package work.chief.service;

import work.chief.entity.User;

import java.util.List;


public interface UserService {
    User selectByUsernameAndPassword(String username, String password);
    boolean selectByPhoneNum(String phone_number);
    boolean selectByUserName(String username);
    int register(User user);
    User selectByUsernameAndPasswordAndManager(String username,String password,int manager);

    List<User> selectAll();

    //分页查询
    List<User> selectPage(Integer currentPage,Integer pageSize);
    Integer selectPageCount();

    int updateManager(int id,int manager);

    int deleteUsers(String ids);
}
